package com.gqzmy.springboot3.service;

import com.github.pagehelper.PageInfo;
import com.gqzmy.springboot3.entity.User;
import com.gqzmy.springboot3.exceptions.SystemApiException;
import com.gqzmy.springboot3.service.dto.ServiceResultDTO;
import com.gqzmy.springboot3.vo.UserQuery;
import com.gqzmy.springboot3.vo.UserRegister;

/**
 * @author 周小哥  gqzmy@163.com 2022/12/1 11:10
 */

public interface UserService {

    ServiceResultDTO<User> register(UserRegister register) throws SystemApiException;

    User getById(String id);

    User getByName(String name);

    boolean insertUser(User user);

    User updateUser(User user);

    PageInfo<User> getUserPageInfo(UserQuery userQuery);
}
